package com.example.model.wemedia.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "Material", description = "自媒体图文素材信息表")
public class Material {
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @Schema(description = "自媒体用户ID")
    private Integer userId;

    @Schema(description = "图片地址")
    private String materialUrl;

    @Schema(description = "素材类型 0图片 1视频")
    private Short materialType;

    @Schema(description = "是否收藏")
    private Short isCollection;

    @Schema(description = "创建时间")
    private Date createdTime;
}

